﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;
using System.Net;
using System.Net.Cache;
using Yd.Util;

namespace yedian
{
    public partial class UserList : AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public override void BindD()
        {
            try
            {
                this.rptlist.DataSource = GetPageSource(PageBtn, cbll.Querytz_user);
                this.rptlist.DataBind();
            }
            catch (Exception e)
            {
                SaveSystemLog(e.Message);
            }
        }
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            Dictionary<string, string> _d = new Dictionary<string, string>();
            if (this.UserName.Text.Trim() != "")
                _d.Add("userName", this.UserName.Text.Trim());
            base.QueryGoToUrl("UserList.aspx", _d);
        }

        public string sfrzs(string status)
        {
            if (status == "1")
            {
                return "已禁用";
            }
            return "正常";
        }

        public string sex(string status)
        {
            if (status == "2")
            {
                return "女";
            }
            if (status == "1")
            {
                return "男";
            }
            return "未设置";
        }
    }
}